package com.lx.pc.mybatis.repository.tendering;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.lx.pc.domain.entity.tendering.TenderingEntity;

@Repository("tenderingRepository")
public interface TenderingRepository extends MybatisRepository<TenderingEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByTenderingCount")
	public int findByTenderingCount(TenderingEntity tendering);
	
	/**
	 * 查询分页
	 * @param Tendering
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByTendering")
	public List<TenderingEntity> findByTendering(TenderingEntity tendering,Integer page,Integer size);
}
